package com.xls.commonlibrary.util;

public class ActivityUtil {
    /********防止按钮连续点击********/
    private static long lastClickTime;

    public synchronized static boolean isFastClick() {
        long time = System.currentTimeMillis();
        if (time - lastClickTime < 500) {
            return true;
        }
        lastClickTime = time;
        return false;
    }
}
